package com.zj.mes.common.mapper;

import com.zj.mes.common.entity.Resource;
import com.zj.mes.common.entity.Role;
import com.zj.mes.login.entity.User;

import java.util.List;

public interface ResourceMapper {
    int insert(Resource record);

    int insertSelective(Resource record);

    User findByName(String username);

    List<Role> findRoleByUserId(Long userid);

    List<Resource> findResourceByRoleIds(Long roleId);

    List<Resource> findResourceByAdmin();
}